<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Erstelle Gruppe</title>         
    </head>
    <body>
        <div class="body">
            <h1>Neue Gruppe erstellen</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${gruppeInstance}">
            <div class="errors">
                <g:renderErrors bean="${gruppeInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:uploadForm name="gruppe" action="save">
                <div class="dialog">
                    <table>
                        <tbody>
                         <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="gruppenName">Name der Gruppe:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:gruppeInstance,field:'gruppenName','errors')}">
                                    <input type="text" id="gruppenName" name="gruppenName" value="${fieldValue(bean:gruppeInstance,field:'gruppenName')}"/>
                                </td>
                            </tr> 
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="freigeschaltet">Passwortgeschützt:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:gruppeInstance,field:'hasPasswort','errors')}">
                                    <g:checkBox name="hasPasswort" value="${gruppeInstance?.hasPasswort}" ></g:checkBox>
                                </td>
                            </tr>  
                        	<tr class="prop">
                                <td valign="top" class="name">
                                    <label for="freigeschaltet">Passwort:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:gruppeInstance,field:'passwort','errors')}">
                                    <g:passwordField name="passwort"  />
                                </td>
                            </tr>
                           <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="freigeschaltet">Logo:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:gruppeInstance,field:'passwort','errors')}">
                                    <input type="file" name="logo" />
                                </td>
                            </tr>      
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><input class="save" type="submit" value="Create" /></span>
                </div>
            </g:uploadForm>
        </div>
    </body>
</html>
